package com.bwie.controller;

import com.bwie.pojo.TbOrderRecord;
import com.bwie.service.TbOrderRecordService;
import com.bwie.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @projectName: server-2211a-shop
 * @package: com.bwie.controller
 * @className: TbOrderRecordController
 * @author: 杨珂
 * @description: TODO
 * @date: 2025/6/3 15:54
 * @version: 1.0
 */

@RestController
@RequestMapping("/shop/orderRecord")
public class TbOrderRecordController {

    @Autowired
    TbOrderRecordService tbOrderRecordService;

    @PostMapping("/getOrderRecordList/{orderId}")
    public Result getOrderRecordList(@PathVariable("orderId") Integer orderId) {
      return   tbOrderRecordService.getOrderRecordList(orderId);
    }


}
